/*
 * Copyright (C), 2015-2018
 * FileName: BeanDefinition
 * Author:   zhao
 * Date:     2018/11/16 11:46
 * Description: Bean的包装类
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.lizhaoblog.tinyspring;

/**
 * 〈一句话功能简述〉<br>
 * 〈Bean的包装类〉
 *
 * @author zhao
 * @date 2018/11/16 11:46
 * @since 1.0.1
 */
public class BeanDefinition {
    private Object bean;
    private Class beanClass;

    private String beanClassName;

    public Object getBean() {
        return bean;
    }

    public void setBean(Object bean) {
        this.bean = bean;
    }

    public Class getBeanClass() {
        return beanClass;
    }

    public void setBeanClass(Class beanClass) {
        this.beanClass = beanClass;
    }

    public String getBeanClassName() {
        return beanClassName;
    }

    public void setBeanClassName(String beanClassName) {
        this.beanClassName = beanClassName;
        try {
            this.beanClass = Class.forName(beanClassName);
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
    }
}
